package AccionBoton;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.JEditorPane;

public class AccionCambiarTextoCreditos implements ActionListener{

	
	private JEditorPane panel;
	private String texto;
	
	public AccionCambiarTextoCreditos(JEditorPane _panel,String _texto){
		
		panel = _panel;
		texto = _texto;
		
	}
	
	
	public void actionPerformed(ActionEvent evt){
		
		panel.setText(texto);

		
	}
	
	
	
}
